<?php
/**
 * Fastlib 配置文件
 *
 * 这里的设置决定了fastlib的运行
 * 
 * $Id: fastlib.cfg.php 122 2010-05-28 10:05:16Z Administrator $
 * $Revision: 122 $
 * $Author: Administrator $
 * $Date: 2010-05-28 18:05:16 +0800 (星期五, 28 五月 2010) $
 * @author glzaboy<glzaboy@163.com>
 * @package fastlib
 * @copyright 2005-2008 (c) glzaboy
 * 
 */
if (! defined ( '__FASTLIB__' )) {
	die ( 'Forbidden 403' );
}
$flibcfg = array ();
/**
 * 内置特殊变量
 */
$flibcfg ['HOST'] = array_shift ( explode ( ':', isset ( $_SERVER ['HTTP_X_FORWARDED_HOST'] ) ? $_SERVER ['HTTP_X_FORWARDED_HOST'] : $_SERVER ['HTTP_HOST'] ) ); //服务器域名
$flibcfg ['PORT'] = isset ( $_SERVER ['SERVER_PORT'] ) && $_SERVER ['SERVER_PORT'] !== 80 ? $_SERVER ['SERVER_PORT'] : ''; //服务器端口
$flibcfg ['RAW_POST'] = file_get_contents ( "php://input" ); //原始的POST数据
$flibcfg ['QUERY_STRING'] = $_SERVER ['QUERY_STRING']; //QUERY_STRING
/**
 * 服务器环境配置
 */
$flibcfg ['timezone'] = 'Asia/Shanghai';
$flibcfg ['cookie_prefix'] = substr ( md5 ( $flibcfg ['HOST'] . __SITE__ ), 8, 5 );
$flibcfg ['debug'] = false;
$flibcfg ['SESSION_PATH'] = 'sess'; //会话保存路径,
$flibcfg ['gzip'] = true; //是否开启压缩传输
/**
 * 页面设置
 */
$flibcfg ['dtd'] = 'x1.0t'; //输出网页标准
$flibcfg ['DocTitle'] = 'NoTitle'; //默认标题
$flibcfg ['charset'] = "iso-8859-1"; //编码
$flibcfg ['unicode'] = false; //输出万能编码
$flibcfg ['separator'] = " - "; //输出网页标准
$flibcfg ['wml'] = 0; //初始化是否生成wml界面
/**
 * 日志设置
 */
$flibcfg ['log'] = false;
$flibcfg ['logTimeFormat'] = 'Y-m-d H:i:s D'; //日志时间格式
$flibcfg ['logFileName'] = date ( 'Y-m-d' ) . '.log'; //日志文件名